package learn.exception;

import lombok.Data;

/**
 * @version 1.0
 * @author: YU.TAN
 * @date: 2023/7/16 16:08
 * @Description:
 */
@Data
public class ErrorCode {
    /**
     * 错误码
     */
    private final Integer code;
    /**
     * 错误提示
     */
    private final String msg;

    public ErrorCode(Integer code, String message) {
        this.code = code;
        this.msg = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
